//判断是否领取过新手红包
exports.is_receive = function (req, res) {
//达人主页
    //获取restful参数
    var restfulParams = req.routeInfo.restfulParams;
    //最终结果
    var resultData = {};

    //任务流创建
    async.waterfall([

        function (cb) {

            R.SEND_HTTP(
                req,
                {
                    url: CORE_APIConfig.coreAPI.searchUserCourseCoupon + "/count/1/ucc_from_type/1/ucc_uid/" + restfulParams.ucc_uid,
                    method: 'GET'
                },
                function (err, data) {

                    resultData.isGetCoupon = data.count;

                    cb();
                }
            );
        },
        /*function (cb) {

            R.SEND_HTTP(
                req,
                {
                    url: CORE_APIConfig.coreAPI.search_user_info + "/u_id/" + restfulParams.ucc_uid,
                    method: 'POST',
                    data: {
                        fields: ["openid"].join(",")
                    }
                },
                function (err, data) {

                    if (err) {
                        return RES.response(res, false, data);
                    }
                    var isConcernPlatform = data.data;

                    if (isConcernPlatform[0].openid) {

                        resultData.isConcernPlatform = 1;

                    }else{

                        resultData.isConcernPlatform = 0;

                    }
                    cb();
                }
            );
        },*/

    ], function (err, result) {

        //返回最终拼接结果
        RES.response(res, true, resultData);

    });

}